package com.dy.design_pattern_study.abstract_factory_pattern.dome_abstract_factory.factory.impl.access;

import com.dy.design_pattern_study.abstract_factory_pattern.dome_abstract_factory.IDB.IDepartment;
import com.dy.design_pattern_study.abstract_factory_pattern.dome_abstract_factory.IDB.IUser;
import com.dy.design_pattern_study.abstract_factory_pattern.dome_abstract_factory.IDB.impl.access.AccessDepartment;
import com.dy.design_pattern_study.abstract_factory_pattern.dome_abstract_factory.IDB.impl.access.AccessUser;
import com.dy.design_pattern_study.abstract_factory_pattern.dome_abstract_factory.factory.IFactory;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-05
 * @Content 具体的抽象工厂实现 Access *Access 抽象工厂
 */
public class AccessFactory implements IFactory {
    @Override
    public IUser CreateUser() {
        return new AccessUser();
    }

    @Override
    public IDepartment CreateDepartment() {
        return new AccessDepartment();
    }
}
